
    <form class="form-inline" action="/updata/{{ data.id }}/" method="post">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                    aria-hidden="true">&times;</span>
            </button>
            <h4 class="modal-title" id="myModalLabel">更新</h4>
        </div>
        <div class="modal-body">

            {% csrf_token %}
            <div class="form-group">
                <label >id:</label>
                <label id="uid">{{ data.id }}</label>
            </div>
            <div class="form-group">
                <label class="sr-only" for="exampleInputEmail3">用户名</label>
                <input type="text" class="form-control" name="user" id="user_i" placeholder="用户名"
                       value="{{ data.d_user }}">
            </div>
            <div class="form-group">
                <label class="sr-only" for="exampleInputPassword3">密码</label>
                <input type="password" class="form-control" name="password" id="pwd_i"
                       placeholder="密码" value="{{ data.d_pwd }}">
            </div>
            {#                    <button type="submit" class="btn btn-default">提交</button>#}

        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button id='submit' type="submit" class="btn btn-primary">添加</button>
        </div>
    </form>

